# -*- coding: utf-8 -*-
"""
 @Time    : 2021/1/18 下午4:01
 @Author  : tgy
 
"""

import setting
from logging import getLogger,config


config.dictConfig(setting.LOGGING_DIC)

logger = getLogger(__name__)


def test01():
    import logging

    logging.basicConfig(
        filename='01.log',
        format='%(asctime)s - %(name)s - %(levelname)s -%(module)s:  %(message)s',
        datefmt='%Y-%m-%d %H:%M:%S %p',
        level=10
    )

    logging.info('111')




if __name__ == '__main__':
    ...
    logger.info('123')